package hu.vaes_dot_hrak.szoftlab4;

public class AntKillerSpray extends Spray {
	private int toxicTime;

	public AntKillerSpray(int quantitySpray, int sprayRadius, int toxicTime) {
		super(quantitySpray, sprayRadius);
		this.toxicTime = toxicTime;
	}

	@Override
	public void flow(Field center) {
		if (quantitySpray > 0)
			center.setAntKillerToxic(this.toxicTime, this.sprayRadius);
	}
}
